﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Xml.Linq;

namespace Jzy.Web.WorkFlow.Fore
{
    public partial class SaveToSession : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            XElement formData = new XElement("FormData");
            foreach (string key in Request.Form.AllKeys)
            {
                if (key.Contains("$"))//非法字符串
                {
                    continue;
                }
                XElement tmp = new XElement(key);
                tmp.Value = Request.Form[key];
                formData.Add(tmp);
            }
            Session["FormData"] = formData;
        }
    }
}
